package demo02;

import java.util.Scanner;

public class TestPay {
    public static void main(String[] args) {
        double money = 556;
        System.out.println("你需要付款的金额为："+money);
        System.out.println("请选择支付的方式：1.微信支付 2.银行卡支付 3.支付宝支付");
        Scanner scanner = new Scanner(System.in);
        switch(scanner.nextInt()){
            case 1:
                Pay bankPay = new BankPay();
                bankPay.pay(money);
                break;
            case 2:
                System.out.println("请选择微信支付");
                break;
            case 3:
                System.out.println("请选择支付宝支付");
                break;
        }
    }
}
